package main
import "fmt"

type Student struct{
	Name string
	Age int
}


func main(){
	//方式1：按照顺序赋值操作
	var s1 Student = Student{"Lee1",32}
	fmt.Println(s1)

	//方式2；按照指定类型
	var s2 Student = Student{
		Age : 32,
		Name : "Lee2",
	}
	fmt.Println(s2)

	//方式3：想要返回结构体的指针类型
	var s3 *Student = &Student{"Lee3",32}
	fmt.Println(*s3)

	var s4 *Student = &Student{
		Age : 32,
		Name : "Lee4",
	}
	fmt.Println(*s4)
}